using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmPsEmpLegatee")]
    public class PsEmpLegatee
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "EmpLegateeId", ResourceType = typeof(Resources.PsEmpLegateesResource))]
        public int EmpLegateeId { get; set; }

		[ForeignKey("Emp")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.PsEmpLegateesResource))]
        public int EmpId { get; set; }

		[DataMember, Display(Name = "LegateeNo", ResourceType = typeof(Resources.PsEmpLegateesResource))]
        public int LegateeNo { get; set; }

		[ForeignKey("NamePrefix")]
		[DataMember, Display(Name = "NamePrefixId", ResourceType = typeof(Resources.PsEmpLegateesResource))]
        public Nullable<int> NamePrefixId { get; set; }

		[DataMember, Display(Name = "LegateeName", ResourceType = typeof(Resources.PsEmpLegateesResource))]
        public string LegateeName { get; set; }

		[DataMember, Display(Name = "LegateeLastName", ResourceType = typeof(Resources.PsEmpLegateesResource))]
        public string LegateeLastName { get; set; }

		[ForeignKey("Fam")]
		[DataMember, Display(Name = "FamId", ResourceType = typeof(Resources.PsEmpLegateesResource))]
        public Nullable<int> FamId { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.PsEmpLegateesResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.PsEmpLegateesResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PsEmpLegateesResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PsEmpLegateesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PsEmpLegateesResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PsEmpLegateesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        public virtual HRM.Employee Emp { get; set; }

		public virtual HRM.MasNamePrefix NamePrefix { get; set; }

		public virtual HRM.MasFamilyhood Fam { get; set; }

    }
}